import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/act/givefacialmaskact/list', { params })
}
export function GetOptionData() {
  return api.get('/api/act/givefacialmaskact/optionlist')
}
// 获取活动用户列表
export function GetUserData(params: any) {
  return api.get('/api/act/givefacialmaskact/userlist', { params })
}
// 获取活动分享记录列表
export function GetUserDetailData(params: any) {
  return api.get('/api/act/givefacialmaskact/usersharedetaillist', { params })
}
// 获取详情
export function GetDataDetail(id: string) {
  return api.get(`/api/act/givefacialmaskact/detail/${id}`)
}
// 添加
export function PostCreateData(params: any) {
  return api.post('/api/act/givefacialmaskact/create', params)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/act/givefacialmaskact/modify', params)
}
// 修改状态
export function PatchModifyType(params: any) {
  return api.patch('/api/act/givefacialmaskact/modifyactstatus', params)
}
